package com.cooper.moviedb.bo;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

/**
 * Created with IntelliJ IDEA.
 * User: cooperlee
 * Date: 12/18/12
 * Time: 2:58 PM
 */

@javax.persistence.Table(name = "DELETE_MEDIA", schema = "", catalog = "media_service_db")
@Entity
public class DeleteMedia {

    public DeleteMedia(){
        super();
    }

    public DeleteMedia(String url){
        super();
        this.url = url;
    }

    private String id;

    @Id
    @GenericGenerator(name="idGenerator",strategy = "uuid")
    @GeneratedValue(generator = "idGenerator")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    private String url;

    @javax.persistence.Column(name = "URL", nullable = false, insertable = true, updatable = true, length = 200, precision = 0)
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }


}
